import 'animate.css'
import '@/assets/styles/common/common.scss'

// 每个页面生成主页按钮
function generateHomeBtn(url = '/') {
    let EL_HomeBtn = $('<div class="btn-home cursor"></div>')
    EL_HomeBtn.click(() => {
        location.href = url
    })
    $('body').append(EL_HomeBtn)
}

// 将全局公用的方法赋值给window
window.generateHomeBtn = generateHomeBtn
